# !/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
===========================
@Time : 2022/10/30 0030 9:33
@Author : 测试开发工程师
@File : read_yaml.py
@Software: PyCharm
============================
"""

import logging

import yaml


# 读取 yaml 文件
def get_data(filename):
    logging.info("获取数据")
    with open(filename) as f:
        datas = yaml.safe_load(f)
        return datas
